package com.tencreat.domain.pt;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.tencreat.common.core.domain.BaseEntity;
import java.math.BigDecimal;
import com.tencreat.common.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;


/**
 * 拼团商品对象 mall_pt_goods
 *
 * @author tencreat
 * @date 2021-11-23
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
@TableName("mall_pt_goods")
public class MallPtGoods extends BaseEntity<MallPtGoods>{
    private static final long serialVersionUID = 1L;


    /** 拼团商品id */
    @TableId(type = IdType.AUTO)
    private Long id;


    /** 商品id */
    @Excel(name = "商品id")
    @ApiModelProperty(value= "商品id")
    @TableField("`goods_id`")
    private Long goodsId;


    /** 商品规格编号 */
    @Excel(name = "商品规格编号")
    @ApiModelProperty(value= "商品规格编号")
    @TableField("`goods_seq_id`")
    private Long goodsSeqId;


    /** 价格 */
    @Excel(name = "价格")
    @ApiModelProperty(value= "价格")
    @TableField("`price`")
    private BigDecimal price;


    /** 自动开奖人数 */
    @Excel(name = "自动开奖人数")
    @ApiModelProperty(value= "自动开奖人数")
    @TableField("`awto_num`")
    private Long awtoNum;


    /** 商品展示 */
    @Excel(name = "商品展示")
    @ApiModelProperty(value= "商品展示")
    @TableField("`goods_jpg`")
    private String goodsJpg;


    /** 可兑换积分 */
    @Excel(name = "可兑换积分")
    @ApiModelProperty(value= "可兑换积分")
    @TableField("`redeemable_points`")
    private Integer redeemablePoints;


    /** 商品状态 */
    @Excel(name = "商品状态")
    @ApiModelProperty(value= "商品状态")
    @TableField("`goods_status`")
    private Long goodsStatus;


    /** 收益点 */
    @Excel(name = "收益点")
    @ApiModelProperty(value= "收益点")
    @TableField("`profit_point`")
    private Long profitPoint;


    /** 专区id */
    @Excel(name = "专区id")
    @ApiModelProperty(value= "专区id")
    @TableField("`zone_id`")
    private Long zoneId;


    /** 显示顺序 */
    @Excel(name = "显示顺序")
    @ApiModelProperty(value= "显示顺序")
    @TableField("`sort`")
    private Long sort;


    /** 删除标志（0代表存在 2代表删除） */
    @TableLogic
    @TableField("`del_flag`")
    private String delFlag;






    /** 租户ID */
    @Excel(name = "租户ID")
    @ApiModelProperty(value= "租户ID")
    @TableField("`tenant_id`")
    private Long tenantId;


    /** 货品ID */
    @Excel(name = "货品ID")
    @ApiModelProperty(value= "货品ID")
    @TableField("`product_id`")
    private Long productId;


}
